package cn.the.angry.physics;

import org.jbox2d.common.Vec2;
import org.jbox2d.dynamics.Body;
import org.jbox2d.dynamics.BodyDef;

public abstract class AngryShape {
	protected BodyDef bodyDef;
	protected Body body;
	
	public AngryShape(){
		bodyDef = new BodyDef();
		bodyDef.allowSleep = true;
	}

	public void setBody(Body body) {
		this.body = body;
	}

	public Body getBody() {
		return body;
	}

	public Vec2 getPosition(){
		return body.getPosition();
	}

	public void setBodyDef(BodyDef bodyDef) {
		this.bodyDef = bodyDef;
	}

	public BodyDef getBodyDef() {
		return bodyDef;
	}
	
	
}
